:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* 主题变量（浅蓝/自然） */
  --bg-1: #f6fbff;
  --bg-2: #eef7ff;
  --card-bg: #ffffff;
  --muted: #6b6f76;
  --text: #213547;
  --accent: #4b84ff;
  --muted-2: #8b95a3;
  --card-elev: rgba(31,54,71,0.06);
  --success: #67c23a;
  --danger: #f56c6c;
  color-scheme: light;
  color: var(--text);
  background-color: var(--bg-1);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.0em;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--card-bg);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
button:hover {
  transform: translateY(-2px);
  border-color: rgba(75,132,255,0.14);
  box-shadow: 0 10px 26px rgba(31,54,71,0.06);
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 1.6em;
}

#app {
  width: 100vw; /* 视口宽度 */
  height: 100vh; /* 视口高度 */
  margin: 0; /* 移除外边距 */
  padding: 0; /* 移除内边距 */
  text-align: center;
  box-sizing: border-box; /* 确保边框和内边距包含在元素尺寸内 */
}

@media (prefers-color-scheme: light) {
  :root {
    color: var(--text);
    background-color: var(--bg-1);
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 全局：用于将页面内容铺满整个视口（不影响登录/注册小卡片样式） */
.page-container.fullpage {
  padding: 24px;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.page-container.fullpage .el-card,
.fullpage .el-card {
  width: 100%;
  max-width: 1100px;
  min-height: calc(100vh - 48px);
  border-radius: 14px;
  box-shadow: 0 12px 34px var(--card-elev);
  background: var(--card-bg);
}

/* Theme: Element button tweaks for visual consistency */
.el-button { transition: all .14s ease }
.el-button--primary { background: linear-gradient(180deg,#4b84ff 0%,#3a6fff 100%); color:#fff; border-color: transparent }
.el-button--success { background: linear-gradient(180deg,#7be47b 0%,#67c23a 100%); color:#fff }
.el-button--warning { background: linear-gradient(180deg,#ffd69e 0%,#ffb74d 100%); color:#3a2f1b }
.el-button--info { background: linear-gradient(180deg,#a0caff 0%,#66a6ff 100%); color:#fff }

/* Table tweaks */
.el-table th { background: transparent; color: var(--muted); font-weight: 600 }
.el-table td { color: var(--text) }
.el-table .el-table__row:hover { background: rgba(75,132,255,0.03) }

/* make table rows and cells more airy */
.el-table .el-table__row {
  transition: background .12s ease, transform .08s ease;
}
.el-table td {
  padding: 14px 12px;
}

/* Dashboard card niceties */
.dashboard-card { padding: 20px }
.dashboard-header h2 { font-size: 1.6rem; margin:0 }
.dashboard-header p { color: var(--muted); margin-top:6px }

/* small utility */
.muted { color: var(--muted-2) }
